package com.yanqu.road.entity.activity.starlight;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * @Author : Cxp
 * @Time : 2024-11-07
 * @Description : 商城补发记录表
 */

@FieldTypeAnnotation(tableName = "t_u_starlight_mall_record_data")
public class StarLightMallRecord extends DataObject {
    @FieldTypeAnnotation(desc = "活动ID")
    private int activityId;

    @FieldTypeAnnotation(desc = "用户ID")
    private long userId;

    @FieldTypeAnnotation(desc = "活动开始天数")
    private int activityDay;

    @FieldTypeAnnotation(desc = "商品ID")
    private int mallId;

    @FieldTypeAnnotation(desc = "购买类型 0-活动限购 1-每日限购")
    private int buyType;

    @FieldTypeAnnotation(desc = "获得方式 0-未获得 1-购买 2-补发")
    private int acquireType;

    @FieldTypeAnnotation(desc = "获得时间")
    private long acquireTime;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getActivityDay() {
        return activityDay;
    }

    public void setActivityDay(int activityDay) {
        if (this.activityDay != activityDay) {
            this.activityDay = activityDay;
            setUpdateOption();
        }
    }

    public int getMallId() {
        return mallId;
    }

    public void setMallId(int mallId) {
        if (this.mallId != mallId) {
            this.mallId = mallId;
            setUpdateOption();
        }
    }

    public int getBuyType() {
        return buyType;
    }

    public void setBuyType(int buyType) {
        if (this.buyType != buyType) {
            this.buyType = buyType;
            setUpdateOption();
        }
    }

    public int getAcquireType() {
        return acquireType;
    }

    public void setAcquireType(int acquireType) {
        if (this.acquireType != acquireType) {
            this.acquireType = acquireType;
            setUpdateOption();
        }
    }

    public long getAcquireTime() {
        return acquireTime;
    }

    public void setAcquireTime(long acquireTime) {
        if (this.acquireTime != acquireTime) {
            this.acquireTime = acquireTime;
            setUpdateOption();
        }
    }
}
